package za.org.jcicada.comms.impl.stub;

import java.util.LinkedList;

import za.org.jcicada.comms.IMessageListener;
import za.org.jcicada.comms.messages.CommsMessage;

public class StubMessageListener implements IMessageListener {
	
	public LinkedList<CommsMessage> messages = new LinkedList<CommsMessage>();
	public boolean closed = false;
	
	@Override
	public void onMessage(CommsMessage message) throws Exception {
		messages.add(message);
	}

	@Override
	public void onClose() throws Exception {
		closed = true;
	}

}
